# -*- encoding:utf-8 -*-
# !/usr/bin/env python
'''
    python-0824-05.py
    ======================
    @descript: 猴子补丁
    @copyright:nnz
    @author:dln
    @date: 2021/8/23 20:40
    @version:v1.0
'''
import time
import gevent.monkey
from gevent import Greenlet


def f_a():
    for element in range(1,10):
        print('a',element)
        time.sleep(1)
        pass
    pass
def f_b():
    for element in range(1,7):
        print('b',element)
        time.sleep(1)
        pass
    pass
def f_c():
    for element in range(1,7):
        print('c',element)
        time.sleep(1)
        pass
    pass
if __name__=='__main__':
    gevent.monkey.patch_all()
    v_gevent01=Greenlet.spawn(f_a)
    v_gevent02=Greenlet.spawn(f_b)
    v_gevent03=Greenlet.spawn(f_c)
    v_gevent01.join()
    v_gevent02.join()
    v_gevent03.join()
    pass
